package cn.com.yusys.yusp.admin.domain;

import cn.com.yusys.yusp.commons.mapper.domain.BaseDomain;
import java.io.Serializable;
import javax.persistence.*;

@Table(name = "S_MODIFY_TRACE")
public class SModifyTrace extends BaseDomain implements Serializable {
    @Id
    @Column(name = "SEQID")
    private String seqid;

    @Column(name = "USR_ID")
    private String usrId;

    @Column(name = "M_MENU_ID")
    private String mMenuId;

    @Column(name = "M_PK_V")
    private String mPkV;

    @Column(name = "ORG_ID")
    private String orgId;

    @Column(name = "M_FIELD_ID")
    private String mFieldId;

    @Column(name = "M_FIELD_NM")
    private String mFieldNm;

    @Column(name = "M_OLD_V")
    private String mOldV;

    @Column(name = "M_OLD_DISP_V")
    private String mOldDispV;

    @Column(name = "M_NEW_V")
    private String mNewV;

    @Column(name = "M_NEW_DISP_V")
    private String mNewDispV;

    @Column(name = "M_DATETIME")
    private String mDatetime;

    private static final long serialVersionUID = 1L;

    /**
     * @return SEQID
     */
    public String getSeqid() {
        return seqid;
    }

    /**
     * @param seqid
     */
    public void setSeqid(String seqid) {
        this.seqid = seqid == null ? null : seqid.trim();
    }

    /**
     * @return USR_ID
     */
    public String getUsrId() {
        return usrId;
    }

    /**
     * @param usrId
     */
    public void setUsrId(String usrId) {
        this.usrId = usrId == null ? null : usrId.trim();
    }

    /**
     * @return M_MENU_ID
     */
    public String getmMenuId() {
        return mMenuId;
    }

    /**
     * @param mMenuId
     */
    public void setmMenuId(String mMenuId) {
        this.mMenuId = mMenuId == null ? null : mMenuId.trim();
    }

    /**
     * @return M_PK_V
     */
    public String getmPkV() {
        return mPkV;
    }

    /**
     * @param mPkV
     */
    public void setmPkV(String mPkV) {
        this.mPkV = mPkV == null ? null : mPkV.trim();
    }

    /**
     * @return M_PAGE_URL
     */
    public String getOrgId() {
        return orgId;
    }

    /**
     * @param mPageUrl
     */
    public void setOrgId(String orgId) {
        this.orgId = orgId == null ? null : orgId.trim();
    }

    /**
     * @return M_FIELD_ID
     */
    public String getmFieldId() {
        return mFieldId;
    }

    /**
     * @param mFieldId
     */
    public void setmFieldId(String mFieldId) {
        this.mFieldId = mFieldId == null ? null : mFieldId.trim();
    }

    /**
     * @return M_FIELD_NM
     */
    public String getmFieldNm() {
        return mFieldNm;
    }

    /**
     * @param mFieldNm
     */
    public void setmFieldNm(String mFieldNm) {
        this.mFieldNm = mFieldNm == null ? null : mFieldNm.trim();
    }


    /**
     * @return M_OLD_V
     */
    public String getmOldV() {
        return mOldV;
    }

    /**
     * @param mOldV
     */
    public void setmOldV(String mOldV) {
        this.mOldV = mOldV == null ? null : mOldV.trim();
    }

    /**
     * @return M_OLD_DISP_V
     */
    public String getmOldDispV() {
        return mOldDispV;
    }

    /**
     * @param mOldDispV
     */
    public void setmOldDispV(String mOldDispV) {
        this.mOldDispV = mOldDispV == null ? null : mOldDispV.trim();
    }

    /**
     * @return M_NEW_V
     */
    public String getmNewV() {
        return mNewV;
    }

    /**
     * @param mNewV
     */
    public void setmNewV(String mNewV) {
        this.mNewV = mNewV == null ? null : mNewV.trim();
    }

    /**
     * @return M_NEW_DISP_V
     */
    public String getmNewDispV() {
        return mNewDispV;
    }

    /**
     * @param mNewDispV
     */
    public void setmNewDispV(String mNewDispV) {
        this.mNewDispV = mNewDispV == null ? null : mNewDispV.trim();
    }

    /**
     * @return M_DATETIME
     */
    public String getmDatetime() {
        return mDatetime;
    }

    /**
     * @param mDatetime
     */
    public void setmDatetime(String mDatetime) {
        this.mDatetime = mDatetime == null ? null : mDatetime.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SModifyTrace other = (SModifyTrace) that;
        return (this.getSeqid() == null ? other.getSeqid() == null : this.getSeqid().equals(other.getSeqid()))
            && (this.getUsrId() == null ? other.getUsrId() == null : this.getUsrId().equals(other.getUsrId()))
            && (this.getmMenuId() == null ? other.getmMenuId() == null : this.getmMenuId().equals(other.getmMenuId()))
            && (this.getmPkV() == null ? other.getmPkV() == null : this.getmPkV().equals(other.getmPkV()))
            && (this.getOrgId() == null ? other.getOrgId() == null : this.getOrgId().equals(other.getOrgId()))
            && (this.getmFieldId() == null ? other.getmFieldId() == null : this.getmFieldId().equals(other.getmFieldId()))
            && (this.getmFieldNm() == null ? other.getmFieldNm() == null : this.getmFieldNm().equals(other.getmFieldNm()))         
            && (this.getmOldV() == null ? other.getmOldV() == null : this.getmOldV().equals(other.getmOldV()))
            && (this.getmOldDispV() == null ? other.getmOldDispV() == null : this.getmOldDispV().equals(other.getmOldDispV()))
            && (this.getmNewV() == null ? other.getmNewV() == null : this.getmNewV().equals(other.getmNewV()))
            && (this.getmNewDispV() == null ? other.getmNewDispV() == null : this.getmNewDispV().equals(other.getmNewDispV()))
            && (this.getmDatetime() == null ? other.getmDatetime() == null : this.getmDatetime().equals(other.getmDatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSeqid() == null) ? 0 : getSeqid().hashCode());
        result = prime * result + ((getUsrId() == null) ? 0 : getUsrId().hashCode());
        result = prime * result + ((getmMenuId() == null) ? 0 : getmMenuId().hashCode());
        result = prime * result + ((getmPkV() == null) ? 0 : getmPkV().hashCode());
        result = prime * result + ((getOrgId() == null) ? 0 : getOrgId().hashCode());
        result = prime * result + ((getmFieldId() == null) ? 0 : getmFieldId().hashCode());
        result = prime * result + ((getmFieldNm() == null) ? 0 : getmFieldNm().hashCode());
        result = prime * result + ((getmOldV() == null) ? 0 : getmOldV().hashCode());
        result = prime * result + ((getmOldDispV() == null) ? 0 : getmOldDispV().hashCode());
        result = prime * result + ((getmNewV() == null) ? 0 : getmNewV().hashCode());
        result = prime * result + ((getmNewDispV() == null) ? 0 : getmNewDispV().hashCode());
        result = prime * result + ((getmDatetime() == null) ? 0 : getmDatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", seqid=").append(seqid);
        sb.append(", usrId=").append(usrId);
        sb.append(", mMenuId=").append(mMenuId);
        sb.append(", mPkV=").append(mPkV);
        sb.append(", orgId=").append(orgId);
        sb.append(", mFieldId=").append(mFieldId);
        sb.append(", mFieldNm=").append(mFieldNm);
        sb.append(", mOldV=").append(mOldV);
        sb.append(", mOldDispV=").append(mOldDispV);
        sb.append(", mNewV=").append(mNewV);
        sb.append(", mNewDispV=").append(mNewDispV);
        sb.append(", mDatetime=").append(mDatetime);
        sb.append("]");
        return sb.toString();
    }
}